package com.sbdo.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.sbdo.service.ProvideBService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
@RequestMapping("/consumer")
public class ConsumerController {

    @Reference
    private ProvideBService provideBService;

    /**
     *  调用 provideBService
     */
    @RequestMapping("/getPbServiceMeth")
    public String getPbServiceMeth(String msg){

       return provideBService.service_to_b(msg);
    }
}